package hashchainutil.common;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Map;

public class FifoUtil {

    public Map<String,Object> readFifo(String filePath) throws IOException {
        FileInputStream inputStream = new FileInputStream(filePath);

        byte[] bs = new byte[1024];

        int n = 0;

        while ((n = inputStream.read(bs)) != -1) {

            System.out.println(n);

            System.out.println(new String(bs, 0, n));

        }
        return null;
    }
}
